package homework;

import cn.hutool.core.io.FileUtil;
import cn.hutool.core.io.IoUtil;

import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;

public class IoUtilTest {
    public static void main(String[] args) {
        BufferedInputStream in = FileUtil.getInputStream("F:/yunhe/rearend/File/text/hlm.txt");
        BufferedOutputStream out = FileUtil.getOutputStream("F:/yunhe/rearend/File/text/test2.txt");
        IoUtil.copy(in, out, IoUtil.DEFAULT_BUFFER_SIZE);

    }
}
